import request from "@/utils/request";
import requestMd5 from "@/utils/requestMd5";

export function car_index(params) {
  return request({
    url: "/car/index",
    method: "get",
    params
  });
}

export function car_add(data) {
  return request({
    url: "/car/add",
    method: "post",
    data: data
  });
}

export function car_edit(data) {
  return request({
    url: "/car/edit",
    method: "post",
    data: data
  });
}

export function car_delete(data) {
  return request({
    url: "/car/delete",
    method: "post",
    data: data
  });
}

export function car_confirmDelete(data) {
  return request({
    url: "/car/confirmDelete",
    method: "post",
    data: data
  });
}

export function car_bindCar(data) {
  return requestMd5({
    url: "/car/bindCar",
    method: "post",
    data: data
  });
}
